package org.example.webserver.service;

import com.alibaba.fastjson.JSONArray;
import org.example.webserver.pojo.Order;
import org.example.webserver.pojo.OrderState;

public interface OrderService {
    Order buy(Order order);
    JSONArray findOrderByUser(Long id);
    JSONArray findOrderByMerchant(String user);
    OrderState send(OrderState orderState);

    OrderState cancel(int id);
}
